<br /><br /><center>View script for controller <b>Zhuanti</b> and script/action name <b>add new</b></center>
<?php echo $this->form; ?>
<script type="text/javascript">
$(document).ready(function(){
	$("#title").bind('blur',function(){
		var article_title=$("#title").val();
		$.ajax({
			type: "GET",	
		  	url: "<?php echo $this->baseUrl(); ?>/admin/article/ajax-get-pin-yin-url",
		  	data: "article_title="+article_title,
		  	success:success,
		  	error: error
		});
	});
});

function success(data){
	$("#url_spell").val(data);
}

function error(){
	alert("error");
}
</script>